#ifndef SIMULATOR_H
#define SIMULATOR_H

#include "BinIns.h"
#include <QMainWindow>
#include <vector>
using std::vector;

namespace Ui
{
class Simulator;
}

class Simulator : public QMainWindow
{
  Q_OBJECT

public:
  explicit Simulator(QWidget *parent = nullptr);
  ~Simulator() override;

private slots:
  void savea();
  void saveb();
  void loada();
  void loadb();
  void asm2bin();
  void bin2asm();
  void over();
  void input();
  void output();
  void updateData();

private:
  Ui::Simulator *ui;
  vector<Instruction> binIns;
  QThread *workthread;
};

#endif // SIMULATOR_H
